//
//  TgViewCell.m
//  11212
//
//  Created by student on 16/3/7.
//  Copyright © 2016年 niit. All rights reserved.
//

#import "TgViewCell.h"

@implementation TgViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setT:(TgModel *)m{
    _t=m;
    self.iconImageView.image=[UIImage imageNamed:m.icon];
    self.titleLable.text=m.title;
    self.priceLable.text=m.price;
    self.buyCountLable.text=m.buyCount;

}

@end
